package org.mspring.mlog.dao;

import org.mspring.mlog.entity.Role;
import org.mspring.nbee.db.dao.IBaseDao;

import java.util.List;

/**
 * @author Gao Youbo
 * @since 2014-09-10 11:44:46
 */
public interface RoleDao extends IBaseDao<Role> {

    /**
     * 根据用户编号查询用户对应角色
     *
     * @param userId
     * @return
     */
    public List<Role> listByUser(long userId);
}
